package com.gbei.center.oauth.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * @Discription ${在此输入一句话描述此文件的作用}
 * @Author yang jun
 * @Date 2019/5/27 10:06
 */
@Data
@ApiModel
public class TokenReq implements Serializable {

    @ApiModelProperty(value = "授权方式", required = true,example = "authorization_code 或者 client_credentials")
    @NotBlank(message = "grantType 不能为空")
    private String grantType;

    @ApiModelProperty(value = "应用ID", required = true)
    @NotBlank(message = "appId 不能为空")
    private String appId;

    @ApiModelProperty(value = "应用密钥", required = true)
    @NotBlank(message = "appSecret 不能为空")
    private String appSecret;

    @ApiModelProperty(value = "授权码", hidden = true)
    private String code;

}
